package com.joysuch.wwyt.dzhapi.bean;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.joysuch.wwyt.common.entity.UserDataEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author JamesZY
 * @since 2021-12-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("wwyt_base_login_account")
@ApiModel(value="BaseLoginAccount对象", description="")
public class ApiBaseLoginAccountBean extends UserDataEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户名")
    @TableField("USER_NAME")
    private String userName;

    @ApiModelProperty(value = "密码")
    @TableField("PASSWORD")
    private String password;

    @ApiModelProperty(value = "扰码盐")
    @TableField("SALT")
    private String salt;

    @ApiModelProperty(value = "状态")
    @TableField("STATE")
    private Integer state;

    @ApiModelProperty(value = "用户详情")
    @TableField("USER_DETAIL_ID")
    private Long userDetailId;

    @ApiModelProperty(value = "角色")
    @TableField("ROLE")
    private String role;

    @ApiModelProperty(value = "是否第一次登录 0 否; 1 是")
    private Boolean firstLogin;

    @ApiModelProperty(value = "登录历史  0 新账号从没登录; 1 登录过")
    private Boolean loginHistory;

    @ApiModelProperty(value = "菜单配置个性化")
    @TableField("MENU_ID_JSON")
    private String menuIdJson;

    @ApiModelProperty(value = "0账号关闭,1账号开启")
    private Integer showState;

    @ApiModelProperty(value = "app消息中心客户端id")
    private String clientId;


}
